cmake_minimum_required(VERSION 3.10)

set(CMAKE_PREFIX_PATH "/home/wei/AA_ubuntu/Libs/opencv-4.1.2/install")
set(OpenCV_INCLUDE_DIRS "/home/wei/AA_ubuntu/Libs/opencv-4.1.2/install/include") 
find_package(OpenCV REQUIRED)

set(MNN_HOME "../third_parties/MNN_v0.2.2.3")
set(MNN_LIB_DIR ${MNN_HOME}/lib)
set(MNN_INCLUDE_DIR ${MNN_HOME}/include/MNN)

set(PYBIND11_INCLUDE_DIR "../third_parties/pybind11/include")
set(PYTHON_INCLUDE_DIR "/home/wei/AA_ubuntu/Libs/anaconda3/include/python3.7m")

link_directories(${MNN_LIB_DIR})

add_library(
    pydetector
    SHARED
    "./cpp/facedetector_pybind.cpp"
)

target_link_libraries(pydetector facedetector-mtcnn MNN  ${OpenCV_LIBS})
target_include_directories(pydetector PRIVATE ${MNN_INCLUDE_DIR} ${PYBIND11_INCLUDE_DIR} ${PYTHON_INCLUDE_DIR})

